<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page session="false" %>

<div class="box">
	<form:form action="${pageContext.request.contextPath}/child/add/${parent}" method="post" modelAttribute="childForm">
		<table>
			<tr><td>Name</td><td><form:input path="name"/></td></tr>
			<tr>
				<td>Gender</td>
				<td>
					<form:select path="gender.idGender">
						<form:option value="-1" label="Select one" />
						<form:options items="${gender}" itemValue="idGender" itemLabel="description" />
					</form:select>
				</td>
			</tr>
			<tr><td>Date of birth</td><td><form:input path="dateOfBirth"/> </td></tr>
			<tr><td>Height</td><td><form:input path="height" size="5"/> cm</td></tr>
			<tr><td>Weight</td><td><form:input path="weight" size="5"/> kg</td></tr>
			<tr><td>Head</td><td><form:input path="head" size="5"/> cm</td></tr>
		</table>
		<input type="submit" value="Submit" class="button"/>
	</form:form>
	
</div>